using System;
using System.Collections.Generic;
using System.Text;

namespace MobileEditor
{
	/// <summary>
	/// A filename mask used with the FileExplorerForm.
	/// </summary>
	/// <remarks>
	/// <para>Authors</para>
	/// <ul>
	/// <li>KEB - Karl E Bradshaw</li>
	/// </ul>
	/// <para>Version History</para>
	/// <table border="1">
	/// <tr><td>Date</td><td>Author</td><td>Change No</td><td>Description</td></tr>
	/// <tr><td>2007-03-05</td><td>KEB</td><td></td><td>Initial version.</td></tr>
	/// </table>
	/// </remarks>
	public class FilenameMask
	{
		private string _mask;
		private string _name;


		/// <summary>
		/// Initializes an instance of the FilenameMask class.
		/// </summary>
		public FilenameMask()
		{
		}

		/// <summary>
		/// Initializes an instance of the FilenameMask class.
		/// </summary>
		/// <param name="name">The display name of the mask.</param>
		/// <param name="mask">The actual filename filter mask.</param>
		public FilenameMask(string name, string mask)
		{
			Name = name;
			Mask = mask;
		}


		/// <summary>
		/// The actual filename filter mask.
		/// </summary>
		public string Mask
		{
			get { return _mask; }
			set { _mask = value; }
		}

		/// <summary>
		/// The display name of the mask.
		/// </summary>
		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}


		/// <summary>
		/// Returns a string representation of this object.
		/// </summary>
		/// <returns>The string representation.</returns>
		public override string ToString()
		{
			return Name;
		}
	}
}
